package rpc.services.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rpc.common.annotation.Service;
import rpc.entity.HelloObject;
import rpc.services.HelloService;


@Service
public class HelloServiceImpl implements HelloService {
    private static final Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);

    @Override
    public String hello(HelloObject object) {
        //int i = 1 / 0;
        logger.info("接收到: {}", object.getMessage());
        return "id = " + object.getId();
    }
}
